/* 
 * File:   utf8exception.h
 * Author: luis
 *
 * Created on 5 de agosto de 2013, 09:07 AM
 */

#ifndef UTF8EXCEPTION_H
#define	UTF8EXCEPTION_H

#include <exception>

class Utf8Exception : public std::exception
{
public:
    
    Utf8Exception()
    {
    }

    /**
     * Describe the general cause of the current error. 
     * 
     * @return String with the error.
     */
    virtual const char* what() const throw ()
    {
        return "File is not utf-8.\n";
    }
};

#endif	/* UTF8EXCEPTION_H */

